package org.bambrikii.kbManager.kb2.managers.query4;

import java.util.Arrays;
import java.util.List;

public abstract class Or<T> extends ConditionBase<T> {

	private List<ICondition<T>> conditions;

	public Or(ConditionType type, ICondition<T>... conditions) {
		super(type);
		this.setConditions(Arrays.asList(conditions));
	}

	private void setConditions(List<ICondition<T>> conditions) {
		this.conditions = conditions;
	}

	protected List<ICondition<T>> getConditions() {
		return conditions;
	}

	public abstract T buildCriteria();

}
